package com.uubx.service.impl;

import com.uubx.mapper.FeedBackMapper;
import com.uubx.pojo.FeedBack;
import com.uubx.service.FeedBackService;
import com.uubx.vo.BatchVo;
import com.uubx.vo.FeedBackVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FeedBackServiceImpl implements FeedBackService {
    @Autowired
    private FeedBackMapper feedBackMapper;

    @Override
    public FeedBack queryFeedBackById(Long id) {
       // FeedBack feedBack = feedBackMapper.queryFeedBackById(id);
        return feedBackMapper.queryFeedBackById(id);
    }

    @Override
    public void saveFeedBack(FeedBack feedBack) {
        feedBackMapper.saveFeedBack(feedBack);

    }

    @Override
    public void updateFeedBack(FeedBack feedBack) {
        feedBackMapper.updateFeedBack(feedBack);

    }

    @Override
    public void deleteFeedBackById(Long id) {
        feedBackMapper.deleteFeedBackById(id);

    }

    @Override
    public List<Map> queryAllFeedBack(FeedBackVo feedBackVo) {
       // List<Map> mapList = feedBackMapper.queryAllFeedBack(feedBackVo);
        return feedBackMapper.queryAllFeedBack(feedBackVo);
    }

    @Override
    public void BatchDeleteFeedBack(BatchVo batchVo) {
        feedBackMapper.BatchDeleteFeedBack(batchVo);
    }

}
